//
//  OCImage.h
//  OpenGLGame
//
//  Created by Nguyen Cong Huy on 11/12/12.
//  Copyright (c) 2012 UIT. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UIKit/UIKit.h"
#include "LBTexture.h"

@interface OCImage : NSObject{
    GLubyte* imageData;
    int byteInAPixel;
    float width;
    float height;
}

@property (nonatomic) GLubyte* imageData;
@property (nonatomic) float width;
@property (nonatomic) float height;
@property (readonly) int byteInAPixel;

- (id)initWithFileName:(NSString*)fileName;
- (id)initWithUIImage:(UIImage*)uiImage;
- (id)initWithTexture:(LBTexture*) texture;
- (UIImage*)createUiImage;
- (void)saveToPngFile:(NSString*)filePath;

@end
